﻿using System.Collections.Generic;
using MigratorCore.Bases;
using System;
namespace MigratorCore.Objects
{
    /// <summary>
    /// Post Base Object Class
    /// </summary>
    public class Post : MigratorCore.Bases.Object
    {
        /// <summary>
        /// Sub Posts
        /// </summary>
        private List<Post> posts;
        /// <summary>
        /// Subject of the post
        /// </summary>
        private string subject;

        public string Subject
        {
            get { return subject; }
            set { subject = value; }
        }
        private string body;

        public string Body
        {
            get { return body; }
            set { body = value; }
        }

        public List<Post> Posts
        {
            get { return posts; }
            set { posts = value; }
        }

        private DateTime posted;

        public DateTime Posted
        {
            get { return posted; }
            set { posted = value; }
        }

        private User user;
        public User User
        {
            get { return user; }
            set { user = value; }
        }

        public Post()
        {
            this.posts = new List<Post>();
            this.posted = DateTime.Now;
            this.body = "";
            this.subject = "";
            this.user = new User();
        }
    }
}
